//
//  UtilDetailViewController.swift
//  funcode
//
//  Created by Wan Jiading on 2016/11/10.
//  Copyright © 2016年 WanJiading. All rights reserved.
//

import UIKit

class UtilDetailViewController: BaseViewController {

	@IBOutlet weak var textView: UITextView!
	var utilModel: UtilModel!
	
    override func viewDidLoad() {
        super.viewDidLoad()

		
		self.textView.text = utilModel.content
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

	@IBAction func saveBtnClick(_ sender: UIBarButtonItem) {
		let _ = self.navigationController!.popViewController(animated: true)
	}
	
	
	@IBAction func getDetail(_ sender: UIBarButtonItem) {
		let webViewVC = WebViewController()
		webViewVC.urlStrig = utilModel.url
		self.navigationController?.pushViewController(webViewVC, animated: true)
	}
}
